// @created: caoshi
// @date: 2021-06-21 08:14
package service

import (
	"academic/dao"
	"academic/model/entity"
	"academic/model/request"
)

func Login(login *request.Login) (*entity.SysUser, error) {
	user, err := dao.FindByUsernameAndPwd(login.Username, login.Password)
	return user, err
}
